from django.db import models

def get_subjects(subjects):
    return sorted(subjects)

class Subject(models.Model):
    title = models.CharField(max_length=30)
    
    def __lt__(self, other):
        return self.title < other.title
    def __unicode__(self):
        return unicode(self.title)
    
    class Meta:
        app_label = 'core'
